package com.gonsin.gmessage.logic.client;

import com.gonsin.gmessage.logic.mqtt.OnlineDeviceBo;

import java.util.Map;

public interface IClientService {

    /**
     * 设备的uuid
     */
    boolean isOnline(String mac);

    /**
     * 获取所有在线设备
     */
    Map<String, OnlineDeviceBo> getAllOnline();

    /**
     * 响应终端在线
     */
    void notifyClientOnline(String connectionId, OnlineDeviceBo client);

    /**
     * 响应终端离线
     */
    void notifyClientOffline(String connectionId);
}
